package com.lyncs.ods.modules.setting.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 国家信息表
 * </p>
 *
 * @author alex
 * @since 2022-04-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("country_info")
@ApiModel(value = "CountryInfo对象", description = "国家信息表")
public class CountryInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("区号")
    @TableField(value = "area_id")
    private Long areaId;

    @ApiModelProperty("国家名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("国家名称多语言json")
    @TableField("language_json")
    @JsonIgnore
    private String languageJson;

    @ApiModelProperty("2位国家码")
    @TableField("code2")
    private String code2;

    @ApiModelProperty("3位国家码")
    @TableField("code3")
    private String code3;

    @ApiModelProperty("官方货币")
    @TableField("official_currency")
    private String officialCurrency;

    @ApiModelProperty("交易使用默认·货币")
    @TableField("currency")
    private String currency;

    @ApiModelProperty("状态: 1.可用;2.禁用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("排序值")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
